<?php
echo $this->Form->create('User');
echo $this->Form->input('name', array('label'=>'Imię'));
echo $this->Form->input('surname', array('label'=>'Nazwisko'));
echo $this->Form->input('address', array('label'=>'Adres'));
echo $this->Form->input('postal_code', array('label'=>'Kod pocztowy'));
echo $this->Form->input('city', array('label'=>'Miasto'));
echo $this->Form->input('phone', array('label'=>'Telefon'));
if($isAdmin) {
	echo $this->Form->input('email', array('label'=>'E-mail'));
	echo $this->Form->input('username', array('label'=>'Login'));
}
echo $this->Form->end('Zapisz');
?>
<table>
<tr>
		<td class="actions">
			<?php echo $this->Html->link('Zmień hasło', array('action' => 'changePassword', $user['User']['username'])); ?>
		</td>
	</tr>
</table>

